package com.csd.pojo;

// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @JavaBean Team
 * @author CSD
 * @version 1.1.1
 * @date 2009-12-16
 * @description 团队
 */

public class Team implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields
	/**数据库唯一标识*/
	private Integer id;			
	/**队长*/
	private Student leader;		
	/**编号*/
	private String teamnum;		
	/**用户名	*/
	private String username;	
	/**密码*/
	private String password;	
	/**团队名称*/
	private String name;		
	/**团队简介*/
	private String introduction;
	/**创建时间*/
	private Date time;			
	/**团队成员*/
	private Set<Student> members = new HashSet<Student>(0);	
	/**团队所负责的工程*/
	private Set<Project> projects = new HashSet<Project>(0);	

	

	// Constructors

	/** default constructor */
	public Team() {
	}

	/** full constructor */
	public Team(Student student, String teamnum, String username,
			String password, String name, String introduction, Date time,
			Set<Student> members, Set<Project> projects) {
		this.leader = student;
		this.teamnum = teamnum;
		this.username = username;
		this.password = password;
		this.name = name;
		this.introduction = introduction;
		this.time = time;
		this.members = members;
		this.projects = projects;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Student getStudent() {
		return this.leader;
	}

	public void setStudent(Student student) {
		this.leader = student;
	}

	public String getTeamnum() {
		return this.teamnum;
	}

	public void setTeamnum(String teamnum) {
		this.teamnum = teamnum;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	
	public Set<Project> getProjects() {
		return projects;
	}

	public void setProjects(Set<Project> projects) {
		this.projects = projects;
	}

	public void setMembers(Set<Student> members) {
		this.members = members;
	}

	public Student getLeader() {
		return leader;
	}

	public void setLeader(Student leader) {
		this.leader = leader;
	}

	public Set<Student> getMembers() {
		return members;
	}
  
	@Override
	public String toString() {
		return this.getName();
	}
	
	
}